package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPipeNetworkMonitoringPressureRecordsMapper;
import com.ruoyi.system.domain.DispatchPipeNetworkMonitoringPressureRecords;
import com.ruoyi.system.service.IDispatchPipeNetworkMonitoringPressureRecordsService;

/**
 * 管网监测压力记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPipeNetworkMonitoringPressureRecordsServiceImpl implements IDispatchPipeNetworkMonitoringPressureRecordsService 
{
    @Autowired
    private DispatchPipeNetworkMonitoringPressureRecordsMapper dispatchPipeNetworkMonitoringPressureRecordsMapper;

    /**
     * 查询管网监测压力记录
     * 
     * @param pipeNetworkMonitoringPressureRecordsId 管网监测压力记录主键
     * @return 管网监测压力记录
     */
    @Override
    public DispatchPipeNetworkMonitoringPressureRecords selectDispatchPipeNetworkMonitoringPressureRecordsByPipeNetworkMonitoringPressureRecordsId(Long pipeNetworkMonitoringPressureRecordsId)
    {
        return dispatchPipeNetworkMonitoringPressureRecordsMapper.selectDispatchPipeNetworkMonitoringPressureRecordsByPipeNetworkMonitoringPressureRecordsId(pipeNetworkMonitoringPressureRecordsId);
    }

    /**
     * 查询管网监测压力记录列表
     * 
     * @param dispatchPipeNetworkMonitoringPressureRecords 管网监测压力记录
     * @return 管网监测压力记录
     */
    @Override
    public List<DispatchPipeNetworkMonitoringPressureRecords> selectDispatchPipeNetworkMonitoringPressureRecordsList(DispatchPipeNetworkMonitoringPressureRecords dispatchPipeNetworkMonitoringPressureRecords)
    {
        return dispatchPipeNetworkMonitoringPressureRecordsMapper.selectDispatchPipeNetworkMonitoringPressureRecordsList(dispatchPipeNetworkMonitoringPressureRecords);
    }

    /**
     * 新增管网监测压力记录
     * 
     * @param dispatchPipeNetworkMonitoringPressureRecords 管网监测压力记录
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPipeNetworkMonitoringPressureRecords(DispatchPipeNetworkMonitoringPressureRecords dispatchPipeNetworkMonitoringPressureRecords)
    {
        return dispatchPipeNetworkMonitoringPressureRecordsMapper.insertDispatchPipeNetworkMonitoringPressureRecords(dispatchPipeNetworkMonitoringPressureRecords);
    }

    /**
     * 修改管网监测压力记录
     * 
     * @param dispatchPipeNetworkMonitoringPressureRecords 管网监测压力记录
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPipeNetworkMonitoringPressureRecords(DispatchPipeNetworkMonitoringPressureRecords dispatchPipeNetworkMonitoringPressureRecords)
    {
        return dispatchPipeNetworkMonitoringPressureRecordsMapper.updateDispatchPipeNetworkMonitoringPressureRecords(dispatchPipeNetworkMonitoringPressureRecords);
    }

    /**
     * 批量删除管网监测压力记录
     * 
     * @param pipeNetworkMonitoringPressureRecordsIds 需要删除的管网监测压力记录主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPipeNetworkMonitoringPressureRecordsByPipeNetworkMonitoringPressureRecordsIds(Long[] pipeNetworkMonitoringPressureRecordsIds)
    {
        return dispatchPipeNetworkMonitoringPressureRecordsMapper.deleteDispatchPipeNetworkMonitoringPressureRecordsByPipeNetworkMonitoringPressureRecordsIds(pipeNetworkMonitoringPressureRecordsIds);
    }

    /**
     * 删除管网监测压力记录信息
     * 
     * @param pipeNetworkMonitoringPressureRecordsId 管网监测压力记录主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPipeNetworkMonitoringPressureRecordsByPipeNetworkMonitoringPressureRecordsId(Long pipeNetworkMonitoringPressureRecordsId)
    {
        return dispatchPipeNetworkMonitoringPressureRecordsMapper.deleteDispatchPipeNetworkMonitoringPressureRecordsByPipeNetworkMonitoringPressureRecordsId(pipeNetworkMonitoringPressureRecordsId);
    }
}
